<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="menu.css" />
    <script src="data.js"></script>
    <script src="../../lib/js/jquery.js"></script>
    <script src="menu.js"></script>
    <style>
        html,body,#root{
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
        }

    </style>
    <script>

        var m;
        $(function(){
            m = new $.Menu({
                element: $("#root"),
                data: menuDatas,
                highlight: true,
                onClick: function(level, parent, data){
                    alert(JSON.stringify(data));
                }
            });
        });

    </script>
</head>
<body>

    <div id="root">

    </div>
    
</body>
</html>